package xing2387.filtervideoplayer.videopager

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import xing2387.filtervideoplayer.R
import xing2387.filtervideoplayer.databinding.ItemVideoPageBinding

class VideoFragmentViewHolder(private val binding: ItemVideoPageBinding) :
    RecyclerView.ViewHolder(binding.root) {

    companion object {
        fun newInstance(parent: ViewGroup): VideoFragmentViewHolder {
            val binding: ItemVideoPageBinding = DataBindingUtil.inflate(
                LayoutInflater.from(parent.context),
                R.layout.item_video_page,
                parent, false
            )
            return VideoFragmentViewHolder(binding)
        }
    }

    fun bindView(videoUrl: String) {

    }
}